<?php /* Smarty version 2.6.18, created on 2009-05-07 07:10:32
         compiled from room/news.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'room/news.html', 58, false),array('modifier', 'date_format', 'room/news.html', 60, false),)), $this); ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->_tpl_vars['Charset']; ?>
">
<title>商务室 - <?php echo $this->_tpl_vars['sitetitle']; ?>
</title>
<link href="<?php echo $this->_tpl_vars['CSS_PATH']; ?>
css/style.css" rel="stylesheet" type="text/css">
<script language="javascript" src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/general.js"></script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td height="83"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/element.top.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr align="center" valign="top">
    <td width="180" align="center" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/left_bg.gif"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "room/menu.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
    <td><table  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/banr_pic.gif" width=570 height=101 alt=""></td>
        </tr>
      </table>
        <table width="95%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="45" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/title_bg.gif"><table height="30" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td>&nbsp;</td>
                  <td class="font14b_org"><p><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/icon_newd.gif" width="15" height="16"> 公司最新动态</p>
                  </td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td height="5" valign="top" class="bggray2"></td>
          </tr>
        </table>
        <br>
        <table width="95%" border="0" cellpadding="2" cellspacing="0" class="bggray">
          <tr>
            <td height="35" class="gray"><span class="orange">（友情提示：</span><span class="zi">可以添加公司最新动态信息，以显示在你的企业网站上！）</span></td>
            <td align="center" class="btn-input"><a href="./news.php?action=mod"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/add.gif" border="0" /></a></td>
          </tr>
        </table>
        <br>
		<form name="newsfrm" action="<?php echo $_SERVER['PHP_SELF']; ?>
" method="post">
        <table width="95%%"  border="0" cellspacing="0" cellpadding="0">
          <tr align="center">
            <td><table width="100%"  border="0" cellpadding="5" cellspacing="1" class="bgblue">
                <tr align="center">
                  <td height="30" align="center"><input name="newsidAll" type="checkbox" id="newsidAll" title="全选" onClick="uaCheckAll(this, 'newsid[]')"></td>
                  <td height="30"><strong>标　题</strong></td>
                  <td ><strong>状态</strong></td>
                  <td ><strong>时 间</strong></td>
                  <td >&nbsp;</td>
                </tr>
				<?php $_from = $this->_tpl_vars['News']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['companynews'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['companynews']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['n']):
        $this->_foreach['companynews']['iteration']++;
?>
                <tr align="center" class="bggray">
                  <td><input name="newsid[]" type="checkbox" id="newsid[]" onClick="uaCheckItem(this, 'newsidAll')" value="<?php echo $this->_tpl_vars['n']['CompanynewsId']; ?>
"></td>
                  <td><a href="news.php?action=mod&id=<?php echo $this->_tpl_vars['n']['CompanynewsId']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['n']['CompanynewsTitle'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 25) : smarty_modifier_truncate($_tmp, 25)); ?>
</a></td>
                  <td>正常</td>
                  <td><?php echo ((is_array($_tmp=$this->_tpl_vars['n']['CompanynewsCreated'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</td>
                  <td><a href="news.php?action=mod&id=<?php echo $this->_tpl_vars['n']['CompanynewsId']; ?>
">修改</a></td>
                </tr>
				<?php endforeach; else: ?>
				<?php endif; unset($_from); ?>
            </table></td>
          </tr>
          <tr align="center">
            <td><?php echo $this->_tpl_vars['ByPages']; ?>
</td>
          </tr>
          <tr align="center">
            <td><table width="100%"  border="0" cellspacing="0" cellpadding="1">
                <tr>
                  <td height="1" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/index_trade_line.gif"></td>
                </tr>
            </table></td>
          </tr>
          <tr align="center" valign="bottom">
            <td height="40"><input name="del" type="submit" id="delete" value="删除选择"></td>
          </tr>
        </table>
		</form>
		</td>
  </tr>
</table>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "room/foot.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</center>
 </html>
